// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import { Button,Container,Header,Aside,Main,Footer,Message,Input,Card} from 'element-ui'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
import App from './App'
import router from './router'

// Vue.config.productionTip = false
// 批量注册组件
const components = {Button,Container,Header,Aside,Main,Footer,Input,Card}
Object.values(components).forEach(component => {
  Vue.use(component)
})

// Vue.use(ElementPlus)

Vue.prototype.$message = Message

/* eslint-disable no-new */
new Vue({
  router,  // 必须在此注入
  render: h => h(App)
}).$mount('#app')

